package com.lancoo.znbkxx.teacher.aibkTestCoach.paperToPersonalAnalysis.aibkAnalysisDXT

import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.LinearLayoutManager
import com.lancoo.znbkxx.teacher.R
import com.lancoo.znbkxx.teacher.aibkTestCoach.kBase.KBaseFragment
import com.lancoo.znbkxx.teacher.aibkTestCoach.networkRequest.entity.PaperPerAnalysisInfor
import kotlinx.android.synthetic.main.aibk_adapter_parent_xzt.view.*

class AnalysisFragmentParentDxt(
        val activity:AppCompatActivity,
        val paperPerAnalysisInfor: PaperPerAnalysisInfor,
        val index_A:Int,
        val index_B:Int
) : KBaseFragment() {

    var rootView:View?=null

    override fun createLayout(): Int {
        return R.layout.aibk_adapter_parent_xzt
    }

    override fun initView(view: View?) {

        rootView = view

        var manager = LinearLayoutManager(activity)
        manager.orientation = LinearLayoutManager.VERTICAL
        rootView!!.RvChoice.layoutManager = manager
        val mAdapter = AnalysisAdapterChildDxt(activity, paperPerAnalysisInfor,index_A,index_B)
        rootView!!.RvChoice.adapter = mAdapter
    }

}